﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="systemUpgradeList.aspx.cs"
    Inherits="PeisongWeb.admin.systemUpgradeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>商品类别 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->

    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("txt_categoryName").value = "";
            document.getElementById("txt_shortName").value = "";
            document.getElementById("drp_parentType").value = "";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin-body">
        <h2 class="section-cms">
            系统升级
        </h2>
        <span>
            <ext:Button runat="server" ID="Button1" Icon="Add" Text="新增" OnClientClick="window.location.href='systemUpgradeEdit.aspx'">
            </ext:Button>
        </span>
        <p>
            &nbsp;</p>
        <div id="admin_list_content">
            <table cellpadding="0" cellspacing="0">
                <tr class="header-row">
                    <th>
                        标 题
                    </th>
                    <th>
                        开始日期
                    </th>
                    <th>
                        结束日期
                    </th>
                    <th>
                        创建日期
                    </th>
                    <th>
                        是否显示
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="rpt_list" runat="server" OnItemCommand="rpt_list_ItemCommand">
                    <ItemTemplate>
                        <tr class='<%# Container.ItemIndex%2==0? "row-alt":"alt"  %>'>
                            <td>
                                <%# Eval("title")%>
                            </td>
                            <td>
                                <%# Eval("startDt")%>
                            </td>
                            <td>
                                <%# Eval("endDt")%>
                            </td>
                            <td>
                                <%# Eval("inputDt")%>
                            </td>
                            <td>
                                <%#(bool)Eval("isShow")?"是":"否" %>
                            </td>
                            <td>
                                <a href="systemUpgradeEdit.aspx?category=<%# Eval("suid") %>">编辑</a>
                                <asp:LinkButton ID="lbt_delete" runat="server" CommandName="Del" CommandArgument='<%# Eval("suid") %>'
                                    Text="删除" OnClientClick="javascript:return confirm('你确定执行此操作吗?')">
                                </asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div id="page">
                <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                    OnPageChanged="AspNetPager1_PageChanged" runat="server" AlwaysShow="True" PageSize="20"
                    InvalidPageIndexErrorMessage="无效页码" PageIndexOutOfRangeErrorMessage="页码超出范围"
                    ShowCustomInfoSection="Left" CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 "
                    CustomInfoTextAlign="Left" HorizontalAlign="Right" NextPageText="下一页" FirstPageText="首页"
                    LastPageText="末页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
